package com.xy.biz.auth.domain.req;

import com.xy.lang.validation.annotation.AlertMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Objects;

@Data
public class UserCodeLoginRequest {

    /**
     * 用户编码，登录名
     */
    @NotBlank(message = "userCodeRequired")
    @AlertMessage(code = "userCodeRequired", msg = "登录名不能为空")
    private String userCode;
    /**
     * 密码
     */
    @NotBlank(message = "passwordRequired")
    @AlertMessage(code = "passwordRequired", msg = "密码不能为空")
    private String password;
    /**
     * 验证码Id
     */
    private Long captchaId;
    /**
     * 验证码编码
     */
    @NotBlank(message = "captchaCodeRequired")
    @AlertMessage(code = "captchaCodeRequired", msg = "验证码不能为空")
    private String captchaCode;

}
